﻿using Dapper.Contrib.Extensions;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Yuebon.Shop.Models
{

    /// <summary>
    /// 会员表，数据实体对象
    /// </summary>
    [Table("Shop_Members")]
    [Serializable]
    public class Members
    {
        /// <summary>
        /// 主键
        /// </summary>
        [MaxLength(50)]
        [ExplicitKey]
        public virtual string Id { get; set; }
        /// <summary>
		/// 分销员ID
        /// </summary>		
        public virtual string ReferralUserId
        {
            get;
            set;
        }
        /// <summary>
        /// 会员等级
        /// </summary>		
        public virtual string GradeId
        {
            get;
            set;
        }
        /// <summary>
        /// 用户名
        /// </summary>		
        public virtual string UserName
        {
            get;
            set;
        }
        /// <summary>
        /// 密码
        /// </summary>		
        public virtual string Password
        {
            get;
            set;
        }
        /// <summary>
        /// 密码加密字符串
        /// </summary>		
        public virtual string PasswordSalt
        {
            get;
            set;
        }
        /// <summary>
        /// 密保问题
        /// </summary>		
        public virtual string PasswordQuestion
        {
            get;
            set;
        }
        /// <summary>
        /// 密保答案
        /// </summary>		
        public virtual string PasswordAnswer
        {
            get;
            set;
        }
        /// <summary>
        /// 注册时间
        /// </summary>		
        public virtual DateTime CreateDate
        {
            get;
            set;
        }
        /// <summary>
        /// Email
        /// </summary>		
        public virtual string Email
        {
            get;
            set;
        }
        /// <summary>
        /// 真实姓名
        /// </summary>		
        public virtual string RealName
        {
            get;
            set;
        }
        /// <summary>
        /// 身份证号
        /// </summary>		
        public virtual string IdentityCard
        {
            get;
            set;
        }
        /// <summary>
        /// 头像
        /// </summary>		
        public virtual string Picture
        {
            get;
            set;
        }
        /// <summary>
        /// 性别
        /// </summary>		
        public virtual int Gender
        {
            get;
            set;
        }
        /// <summary>
        /// 生日
        /// </summary>		
        public virtual DateTime? BirthDate
        {
            get;
            set;
        }
        /// <summary>
        /// 是否开通支付账户
        /// </summary>		
        public virtual bool IsOpenBalance
        {
            get;
            set;
        }
        /// <summary>
        /// 交易密码
        /// </summary>		
        public virtual string TradePassword
        {
            get;
            set;
        }
        /// <summary>
        /// 交易密码字符串
        /// </summary>		
        public virtual string TradePasswordSalt
        {
            get;
            set;
        }
        /// <summary>
        /// 订单数量
        /// </summary>		
        public virtual int OrderNumber
        {
            get;
            set;
        }
        /// <summary>
        /// Expenditure
        /// </summary>		
        public virtual decimal Expenditure
        {
            get;
            set;
        }
        /// <summary>
        /// 积分
        /// </summary>		
        public virtual int Points
        {
            get;
            set;
        }
        /// <summary>
        /// 张宇余额
        /// </summary>		
        public virtual decimal Balance
        {
            get;
            set;
        }
        /// <summary>
        /// RequestBalance
        /// </summary>		
        public virtual decimal RequestBalance
        {
            get;
            set;
        }
        /// <summary>
        /// 顶级地区
        /// </summary>		
        public virtual int TopRegionId
        {
            get;
            set;
        }
        /// <summary>
        /// 最后一级地区ID
        /// </summary>		
        public virtual int RegionId
        {
            get;
            set;
        }
        /// <summary>
        /// 地址
        /// </summary>		
        public virtual string Address
        {
            get;
            set;
        }
        /// <summary>
        /// 电话
        /// </summary>		
        public virtual string CellPhone
        {
            get;
            set;
        }
        /// <summary>
        /// QQ
        /// </summary>		
        public virtual string QQ
        {
            get;
            set;
        }
        /// <summary>
        /// 旺旺
        /// </summary>		
        public virtual string Wangwang
        {
            get;
            set;
        }
        /// <summary>
        /// 微信号
        /// </summary>		
        public virtual string WeChat
        {
            get;
            set;
        }
        /// <summary>
        /// SessionId
        /// </summary>		
        public virtual string SessionId
        {
            get;
            set;
        }
        /// <summary>
        /// SessionEndTime
        /// </summary>		
        public virtual DateTime? SessionEndTime
        {
            get;
            set;
        }
        /// <summary>
        /// 是否验证邮箱
        /// </summary>		
        public virtual bool EmailVerification
        {
            get;
            set;
        }
        /// <summary>
        /// 是否验证电话
        /// </summary>		
        public virtual bool CellPhoneVerification
        {
            get;
            set;
        }
        /// <summary>
        /// 注册来源
        /// </summary>		
        public virtual int RegisteredSource
        {
            get;
            set;
        }
        /// <summary>
        /// 是否一键登录帐号
        /// </summary>		
        public virtual bool IsQuickLogin
        {
            get;
            set;
        }
        /// <summary>
        /// 登录状态，是否登录
        /// </summary>		
        public virtual bool IsLogined
        {
            get;
            set;
        }
        /// <summary>
        /// 公众平台与开户平台关联Id
        /// </summary>		
        public virtual string Unionid
        {
            get;
            set;
        }
        /// <summary>
        /// 是否已关注公众号
        /// </summary>		
        public virtual bool IsSubscribe
        {
            get;
            set;
        }
        /// <summary>
        /// 昵称
        /// </summary>		
        public virtual string NickName
        {
            get;
            set;
        }
        /// <summary>
        /// 会员标签Ids
        /// </summary>		
        public virtual string TagIds
        {
            get;
            set;
        }
        /// <summary>
        /// 是否已赠送APP下载优惠券
        /// </summary>		
        public virtual bool IsSendAppCoupons
        {
            get;
            set;
        }
        /// <summary>
        /// 来源客户端
        /// </summary>		
        public virtual string ClientId
        {
            get;
            set;
        }
        /// <summary>
        /// Token
        /// </summary>		
        public virtual string Token
        {
            get;
            set;
        }
        /// <summary>
        /// 所属门店
        /// </summary>		
        public virtual int StoreId
        {
            get;
            set;
        }
        /// <summary>
        /// ShoppingGuiderId
        /// </summary>		
        public virtual int ShoppingGuiderId
        {
            get;
            set;
        }
        /// <summary>
        /// 联系信息
        /// </summary>		
        public virtual string ContactInfo
        {
            get;
            set;
        }
        /// <summary>
        /// O2OStoreId
        /// </summary>		
        public virtual int O2OStoreId
        {
            get;
            set;
        }
        /// <summary>
        /// 是否一键帐号设备登录，如果是支付则使用绑定的openId否则重新获取
        /// </summary>		
        public virtual bool IsDefaultDevice
        {
            get;
            set;
        }
    }
}
